<?php
/**
 * Created by PhpStorm.
 * User: tom_xia
 * Date: 2018/3/2
 * Time: 10:50
 * 对象存储上传配置
 */

$basePath = rtrim(CDN_PATH,"/");
$baseHttp = rtrim(CDN_HOST,"/");

//录音上传
$config["audio"] = array(
    'savehttp'=>$baseHttp."/audio",
    'savepath'=>$basePath."/audio",
    'uploadpath'=>$basePath.'/audio',
    'filename'=>time().rand(1000,10000),
    'allowtype'=>'*'
);
$config["tmp"] = array(
    'savehttp'=>$baseHttp."/tmp",
    'savepath'=>$basePath."/tmp",
    'uploadpath'=>$basePath.'/tmp',
    'filename'=>time().rand(1000,10000),
    'allowtype'=>'*'
);
$config["tmp1"] = array(
    'savehttp'=>$baseHttp."/tmp1",
    'savepath'=>$basePath."/tmp1",
    'uploadpath'=>$basePath.'/tmp1',
    'filename'=>time().rand(1000,10000),
    'allowtype'=>['mp4','mov','avi']
);
$config["video"] = array(
    'savehttp'=>$baseHttp."/video",
    'savepath'=>$basePath."/video",
    'uploadpath'=>$basePath.'/video',
    'filename'=>time().rand(1000,10000),
    'allowtype'=>'*'
);
$config["image"] = array(
    'savehttp'=>$baseHttp."/image",
    'savepath'=>$basePath."/image",
    'uploadpath'=>$basePath.'/image',
    'filename'=>time().rand(1000,10000),
    'allowtype'=>'*'
);
return $config;